package com.schoolcloud.common.model;

import lombok.Data;

@Data
public class PageQuery {
    /**
     * 页码
     */
    private int pageNum=1;
    /**
     *
     */
    private int pageSize=10;
    private String sortBy;
    private Boolean isAsc = true;
    private long offset;

    public long getOffset() {
        return (long) (pageNum - 1) * pageSize;
    }
}
